package com.woniuxy.user.mapper;

import com.woniuxy.user.entity.Role;
import com.woniuxy.user.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RoleMapper {
    List<Role> getRoleList(RoleVo roleVo);

    int checkName(String name);

    int addRole(Role role);

    int editRole(Role role);

    int checkUserRole(Integer id);

    int checkRolePerms(Integer id);

    int deleteRole(Integer id);

    List<Role> getRoleListForEmployee();
}
